package com.buba.personnel.service.impl;

import com.buba.personnel.dao.administerDao;
import com.buba.personnel.dao.impl.administerDaoImpl;
import com.buba.personnel.pojo.Pagination;
import com.buba.personnel.pojo.admin;
import com.buba.personnel.service.administerService;

import java.util.List;
import java.util.Map;


public class administerServiceImpl implements administerService {
    administerDao administerDao = new administerDaoImpl();

    @Override
    public long selCount(Pagination<admin> pagination) {
        return administerDao.selCount(pagination);
    }

    @Override
    public List<admin> selAdmin(Pagination<admin> pagination) {
        return administerDao.selAdmin(pagination);
    }

    @Override
    public void insert(Map<String, String> param) {
        administerDao.insert(param);
    }

    @Override
    public int updAdmin(Map<String, String> param) {
        return administerDao.updAdmin(param);
    }

    @Override
    public int delAdmin(Map<String, String> param) {
        return administerDao.delAdmin(param);
    }
}
